package com.kt.dion.golf.data;

import java.util.ArrayList;

import com.kt.dion.golf.util.ImageFactory;
import com.kt.dion.golf.util.Log;
import com.kt.dion.golf.util.ResourceManager;

public class NoticeListData extends Data
{
	private ArrayList arrNotice = new ArrayList();

	private int dataSize;

	public void addNotice(Notice Notice)
	{
		arrNotice.add(Notice);
	}

	public Notice getNotice(int i)
	{
		if (arrNotice.isEmpty())
			Log.outLine(" Notice is empty !!!!!!!!!!!!");
		return (Notice) arrNotice.get(i);
	}

	public void setDataSize(int dataSize)
	{
		this.dataSize = dataSize;
	}

	public int getDataSize()
	{
		return dataSize;
	}

	public class Notice
	{
		private String id;
		private String title;
		private String content;

		public ArrayList arrContents;

		public String getId()
		{
			return id;
		}

		public void setId(String id)
		{
			this.id = id;
		}

		public String getTitle()
		{
			return title;
		}

		public void setTitle(String title)
		{
			this.title = title;
		}

		public String getContent()
		{
			return content;
		}

		public void setContent(String content)
		{
			this.content = content;
		}

		public void dispose()
		{
			if (arrContents != null)
			{
				arrContents.clear();
				arrContents = null;
			}
		}
	}

	public void dispose(boolean isDisposeOfPage)
	{
		for (int i = 0; i < arrNotice.size(); i++)
			getNotice(i).dispose();

		arrNotice.clear();
		arrNotice = null;
	}

	public String toString()
	{
		return null;
	}
}
